import { configureStore } from '@reduxjs/toolkit';
import CounterReducer from './counterSlice';
import AuthReducer from './authSlice';

const store = configureStore({
    reducer: {
        counter: CounterReducer,
        auth: AuthReducer
    },
});

export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch

export default store

